CREATE TABLE [dbo].[TMPARA_SEGU]
(
[ST_CLAV_DIFE] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_CL__1F98B2C1] DEFAULT ('N'),
[ST_CLAV_NIGU] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_CL__2180FB33] DEFAULT ('N'),
[ST_CLAV_NCON] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_CL__236943A5] DEFAULT ('N'),
[ST_NCLA_DIFE] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_NC__25518C17] DEFAULT ('N'),
[ST_NCLA_DIAR] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_NC__2739D489] DEFAULT ('N'),
[ST_SIST_INSA] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_SI__29221CFB] DEFAULT ('N'),
[ST_OPCI_INSA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TMPARA_SE__ST_OP__2B0A656D] DEFAULT ('N'),
[ST_DESA_INAC] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_DE__2CF2ADDF] DEFAULT ('N'),
[ST_ELIM_INAC] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TMPARA_SE__ST_EL__2EDAF651] DEFAULT ('N'),
[ST_CAMB_CLAV] [dbo].[TD_VC_001_SINO] NOT NULL CONSTRAINT [DF__TMPARA_SE__ST_CA__30C33EC3] DEFAULT ('N'),
[ST_INGR_FALL] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TMPARA_SE__ST_IN__32AB8735] DEFAULT ('N'),
[DD_CAMB_CLAV] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__DD_CA__3493CFA7] DEFAULT ((0)),
[DD_DESA_INAC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__DD_DE__3587F3E0] DEFAULT ((0)),
[DD_ELIM_INAC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__DD_EL__367C1819] DEFAULT ((0)),
[NU_INGR_FALL] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_IN__37703C52] DEFAULT ((0)),
[ST_CLAV_NUME] [dbo].[TD_VC_001_SINO] NULL,
[ST_CLAV_LETR] [dbo].[TD_VC_001_SINO] NULL,
[ST_CLAV_SIMB] [dbo].[TD_VC_001_SINO] NULL,
[ST_CLAV_NULE] [dbo].[TD_VC_001_SINO] NULL,
[NU_CLAV_NUME] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__3C34F16F] DEFAULT ((0)),
[NU_CLAV_LETR] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__3D2915A8] DEFAULT ((0)),
[NU_CLAV_SIMB] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__3E1D39E1] DEFAULT ((0)),
[ST_CLAV_MINI] [dbo].[TD_VC_001_SINO] NULL,
[ST_CLAV_MAXI] [dbo].[TD_VC_001_SINO] NULL,
[NU_CLAV_MINI] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__40F9A68C] DEFAULT ((0)),
[NU_CLAV_MAXI] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__41EDCAC5] DEFAULT ((0)),
[ST_CLAV_CASE] [dbo].[TD_VC_001_SINO] NULL,
[NU_CLAV_MAYU] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__43D61337] DEFAULT ((0)),
[NU_CLAV_MINU] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_CL__44CA3770] DEFAULT ((0)),
[NU_NCLA_DIAR] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_NC__45BE5BA9] DEFAULT ((0)),
[NU_NCLA_DIFE] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMPARA_SE__NU_NC__46B27FE2] DEFAULT ((0)),
[ST_FORZ_CAMB] [dbo].[TD_VC_001_SINO] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TMPARA_SE__CO_US__489AC854] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TMPARA_SE__FE_US__498EEC8D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TMPARA_SE__CO_US__4A8310C6] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TMPARA_SE__FE_US__4B7734FF] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CA__31B762FC] CHECK NOT FOR REPLICATION (([ST_CAMB_CLAV]='N' OR [ST_CAMB_CLAV]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__208CD6FA] CHECK NOT FOR REPLICATION (([ST_CLAV_DIFE]='N' OR [ST_CLAV_DIFE]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__22751F6C] CHECK NOT FOR REPLICATION (([ST_CLAV_NIGU]='N' OR [ST_CLAV_NIGU]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__245D67DE] CHECK NOT FOR REPLICATION (([ST_CLAV_NCON]='N' OR [ST_CLAV_NCON]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__3864608B] CHECK NOT FOR REPLICATION (([ST_CLAV_NUME]='N' OR [ST_CLAV_NUME]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__395884C4] CHECK NOT FOR REPLICATION (([ST_CLAV_LETR]='N' OR [ST_CLAV_LETR]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__3A4CA8FD] CHECK NOT FOR REPLICATION (([ST_CLAV_SIMB]='N' OR [ST_CLAV_SIMB]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__3B40CD36] CHECK NOT FOR REPLICATION (([ST_CLAV_NULE]='N' OR [ST_CLAV_NULE]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__3F115E1A] CHECK NOT FOR REPLICATION (([ST_CLAV_MINI]='N' OR [ST_CLAV_MINI]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__40058253] CHECK NOT FOR REPLICATION (([ST_CLAV_MAXI]='N' OR [ST_CLAV_MAXI]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_CL__42E1EEFE] CHECK NOT FOR REPLICATION (([ST_CLAV_CASE]='N' OR [ST_CLAV_CASE]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_DE__2DE6D218] CHECK NOT FOR REPLICATION (([ST_DESA_INAC]='N' OR [ST_DESA_INAC]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_EL__2FCF1A8A] CHECK NOT FOR REPLICATION (([ST_ELIM_INAC]='N' OR [ST_ELIM_INAC]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_FO__47A6A41B] CHECK NOT FOR REPLICATION (([ST_FORZ_CAMB]='N' OR [ST_FORZ_CAMB]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_IN__339FAB6E] CHECK NOT FOR REPLICATION (([ST_INGR_FALL]='N' OR [ST_INGR_FALL]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_NC__2645B050] CHECK NOT FOR REPLICATION (([ST_NCLA_DIFE]='N' OR [ST_NCLA_DIFE]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_NC__282DF8C2] CHECK NOT FOR REPLICATION (([ST_NCLA_DIAR]='N' OR [ST_NCLA_DIAR]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_OP__2BFE89A6] CHECK NOT FOR REPLICATION (([ST_OPCI_INSA]='N' OR [ST_OPCI_INSA]='S'))
GO
ALTER TABLE [dbo].[TMPARA_SEGU] WITH NOCHECK ADD CONSTRAINT [CK__TMPARA_SE__ST_SI__2A164134] CHECK NOT FOR REPLICATION (([ST_SIST_INSA]='N' OR [ST_SIST_INSA]='S'))
GO
GRANT SELECT ON  [dbo].[TMPARA_SEGU] TO [public]
GRANT INSERT ON  [dbo].[TMPARA_SEGU] TO [public]
GRANT DELETE ON  [dbo].[TMPARA_SEGU] TO [public]
GRANT UPDATE ON  [dbo].[TMPARA_SEGU] TO [public]
GO
